
<?php
$DocRoot = $_SERVER['DOCUMENT_ROOT'];
include_once "$DocRoot/woflow/model/entity.php";
class SysWidget extends Entity
{
	public function __construct($bReadOnly=false)
	{
		parent::__construct("sys_widgets", "widgetID", $bReadOnly=false);
	}
	public function getWidgetID()
	{
		return $this->widgetID;

	}
	public function setWidgetID($widgetID)
	{
		$this->widgetID = $widgetID;

	}
	public function getWidgetData()
	{
		return $this->widgetData;

	}
	public function setWidgetData($widgetData)
	{
		$this->widgetData = $widgetData;

	}
	public function toJSON()
	{
		return json_decode(
			array(
				"widgetID" => $this->widgetID,
				"widgetData" => $this->widgetData
			)
		);

	}

	private $widgetID;
	private $widgetData;
}
?>
